/**
 * Assert.java		26/06/2009
 */
package org.jopris.util;

/**
 * @author Guy Nir
 * @version 1.00
 * 
 */
public class Assert {

	/**
	 * Assert that a given <i>object</i> is not <code>null</code>. If
	 * <i>object</i> is <code>null</code>,
	 * <code>java.lang.IllegalArgumentException</code> is thrown.
	 * 
	 * @param object
	 *            Object's state to assert.
	 * 
	 * @param message
	 *            Message to associate with exception.
	 * 
	 * @throws IllegalArgumentException
	 *             If <i>object</i> is <code>null</code>.
	 */
	public static void assertNotNull(Object object, String message) throws IllegalArgumentException {
		if (object == null) {
			throw new IllegalArgumentException(message);
		}

	}

}
